﻿@Scripts.Render("~/bundles/group")
 @{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
 @model System.Data.DataSet
 
<form action="" method="post">

<h2>Quản lí thông tin chủng loại hàng</h2>
 <input type=text placeholder="Enter group name" name="group" id="name" /><br />
 <p class="insert">Insert</p>
 <table  id="list_group">
<tr>
<th>Id</th>
<th>Name</th>
<th>Delete</th>
<th>Edit</th>
</tr>
@foreach(System.Data.DataRow item in Model.Tables[0].Rows )
{
    <tr>
    <td>@item[0].ToString()</td>
    <td>@item[1].ToString()</td>
    <td><img class="delete" index="@item[0].ToString()"src="@Url.Content("~/Content/themes/base/images/delete.png")" /></td>
    <td><img class="edit" index="@item[0].ToString()" name="@item[1].ToString()" src="@Url.Content("~/Content/themes/base/images/edit.png")" /></td>
    </tr>
}

</table>
</form>
<div id ="form" style="display:none">
 <h5>Mã chủng loại hàng</h5><input type="text" value="" disabled="true" /><br />
 <h5>Tên chủng loại hàng</h5><input type="text" value="" />
 <p class="save">Submit</p>
 
</div>

